package nongchang.kuaijiecaifu.com.ncapp_android.retrofit.main;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ezy on 15-9-29.
 */
public class Link implements Parcelable {
    public String title;
    public String url;
    public String image;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.url);
        dest.writeString(this.image);
    }

    public Link() {
    }

    protected Link(Parcel in) {
        this.title = in.readString();
        this.url = in.readString();
        this.image = in.readString();
    }

    public static final Creator<Link> CREATOR = new Creator<Link>() {
        public Link createFromParcel(Parcel source) {
            return new Link(source);
        }

        public Link[] newArray(int size) {
            return new Link[size];
        }
    };
}
